function [s,byte_sequence]=transmit_bpsk(byte_sequence,nt)

%makes sure number of digits in byte string is multiple of number of transmit antennas
zero_padding_bytes=ceil(length(byte_sequence)/nt)*nt-length(byte_sequence);
byte_sequence=horzcat(byte_sequence,zeros(1,zero_padding_bytes));

s=zeros(nt,ceil(length(byte_sequence)/nt));

for n=1:length(byte_sequence)
	row=mod((n-1),nt)+1;
	col=floor((n-1)/nt)+1;
	s(row,col)=bin2bpsk([byte_sequence(n)]);
end

